﻿@model Ninesky.MVC.ViewModels.NoticeViewModel
@using Ninesky.MVC.ViewModels;
@section Aside
    {
    @await Html.PartialAsync("AsidePartial")
}
<div class="panel panel-default">
    <div class="panel-heading">
        @switch (Model.Type)
            {
                case NoticeType.Succeed:
                <span class="glyphicon glyphicon-ok"></span>
                break;
            case NoticeType.Failure:
                <span class="glyphicon glyphicon-remove"></span>
                break;
            case NoticeType.Warning:
                <span class="glyphicon glyphicon-exclamation-sign"></span>
                break;
            case NoticeType.Notify:
                <span class="glyphicon glyphicon-comment"></span>
                break;
        }
        @Model.Tile
    </div>

    <div class="panel-body">
        @Model.Message <p>

            @if (Model.Links != null)
            {
                @foreach (var item in Model.Links)
                {
                    <a class="btn btn-default" href="@item.Value">@item.Key</a>
                }
            }
    </div>
</div>

@section scripts{
    @await Html.PartialAsync("_ValidationScriptsPartial")
    <script src="~/lib/zTree/js/jquery.ztree.core.min.js"></script>
    <script src="~/areas/manage/default/js/category/aside.js"></script>
}
@section css{
    <link href="~/lib/zTree/css/metroStyle/metroStyle.css" rel="stylesheet" />
}